<? $params = $this->Paginator->params(); ?>
<? if($params['count'] > $params['limit']): ?>
<div class="pagination">
    
    <? if($params['page'] > 5): ?>
	<span class="first" title="Prva strana">
        <?= $this->Paginator->first("1") ?>
    </span>
    <? endif; ?>
	
	<span class="numbers">
		<?= $this->Paginator->numbers(array(
			'modulus' => 7,
			'separator' => ''
		)) ?>
	</span>
	
    <? if ($params['pageCount']>7 && $params['page']+3 < $params['pageCount']): ?>
	<span class="last" title="Poslednja strana">
        <?= $this->Paginator->last("" . $params['pageCount']) ?>
    </span>
    <? endif; ?>
</div>
<? endif; ?>